<template>
	<view class="main">
		<coupon-package :dataList="dataList"></coupon-package>
		<sww-load-more :params="dataListParams"></sww-load-more>
	</view>
</template>

<script>
	import couponPackage from '@/pagecomponents/couponPackage/index.vue'
	import {
		pagingMixin
	} from '@/mixins/pagingMixin.js'
	export default {
		mixins: [pagingMixin],
		data() {
			return {};
		},
		components: {
			'coupon-package': couponPackage
		},
		onLoad(options) {
			let title = '优惠券套餐'
			if(options && options.title){
				title = options.title
			}
			uni.setNavigationBarTitle({
				title: title
			});
			this.$initPage()
		},
		onReachBottom() {
			this._load_data()
		},
		methods: {
			$initPage() {
				this._init_data('GetCouponPackageList')
			}
		},
	};
</script>
<style lang="scss">
	page {
		background-color: $www-theme-bg;
	}
</style>
<style scoped lang="scss">
	.main{
		padding-top: 20rpx;
	}
</style>
